package com.itheima.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Dept;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {


//    @Select("select * from dept")
//    List<Dept> selectDept();
//
//    @Select("delete from dept where id= #{id}")
//    void deleteDept(@Param("id") Integer id);
//
//    @Insert("insert into dept (name, create_time, update_time) value (#{name}, #{createTime}, #{updateTime})")
//    void insertDept(Dept dept);
//
//    @Select("select * from dept where id = #{id}")
//    Dept selectDeptById(Integer id);
//
//    @Update("update dept set name = #{name} , update_time = #{updateTime} where id = #{id}")
//    void updateDept(Dept dept);
}
